]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspace: Ensure style of window-chrome titles before requesting width
authorJonas Dreßler <verdre@v0yd.nl>
Tue, 18 Feb 2020 22:21:52 +0000 (23:21 +0100)
committerFlorian Müllner <florian.muellner@gmail.com>
Wed, 19 Feb 2020 10:09:20 +0000 (10:09 +0000)
Make sure the stylesheet properties of the window-chrome title are
updated before requesting the preferred width of the title to prevent
size changes of the title after we animated the width.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/issues/58

js/ui/workspace.js

index 3cfce9845d63fcd4c692b771f03a1714bd71666d..5fa818491baced6b7fe7bd768c33817a3e01c952 100644 (file)
@@ -578,6 +578,8 @@ var WindowOverlay = class {
         border.remove_all_transitions();
         title.remove_all_transitions();
 
+        title.ensure_style();
+
         let [cloneX, cloneY, cloneWidth, cloneHeight] = this._windowClone.slot;
 
         let layout = Meta.prefs_get_button_layout();